package com.tensquare.user.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author yuxiang
 * @Date 2020-12-18 14:26
 */
@Configuration

public class MyBatisPlusConfig {

    @Bean
    public PaginationInterceptor createPaginationIntercepter(){
        return new PaginationInterceptor();
    }

}
